import request from '@/utils/request';

// 轮播图列表
export function swiperList (params) {
  return request({
    url: 'v1/shoprotation/list',
    method: 'get',
    params
  });
}
// 切换显示状态
export function changeShow (data) {
  return request({
    url: 'v1/shoprotation/show',
    method: 'post',
    data: data
  });
}
// 新增或编辑轮播图
export function editSwiper (data) {
  return request({
    url: 'v1/shoprotation/edit',
    method: 'post',
    data: data
  });
}

// 删除轮播图
export function deleteswiper (data) {
  return request({
    url: 'v1/shoprotation/delete',
    method: 'post',
    data: data
  });
}
